import request from "@/utils/alirequest";

// 空气质量查询
export function queryAirQuality(query) {
  const token = {token: "8b36edf8e3444047812be3a59d27bab9"};
  return request({
    url: "/whapi/json/alicityweather/aqi",
    method: "post",
    params: {...query, ...token },
  });
}

// 生活指数查询
export function queryLifeIndex(query) {
  const token = {token: "5944a84ec4a071359cc4f6928b797f91"};
  return request({
    url: "/whapi/json/alicityweather/index",
    method: "post",
    params: {...query, ...token },
  });
}

// 天气预报24小时查询
export function queryWeatherForecast24(query) {
  const token = {token: "008d2ad9197090c5dddc76f583616606"};
  return request({
    url: "/whapi/json/alicityweather/forecast24hours",
    method: "post",
    params: {...query, ...token },
  });
}

// 实时天气查询
export function queryRealtime(query) {
  const token = {token: "50b53ff8dd7d9fa320d3d3ca32cf8ed1"};
  return request({
    url: "/whapi/json/alicityweather/condition",
    method: "post",
    params: {...query, ...token },
  });
}

// 未来15日天气预报查询
export function queryWeatherForecast15(query) {
  const token = {token: "f9f212e1996e79e0e602b08ea297ffb0"};
  return request({
    url: "/whapi/json/alicityweather/forecast15days",
    method: "post",
    params: {...query, ...token },
  });
}

